package itheima06;

import java.io.FileNotFoundException;
import java.io.PrintStream;

/*
    java.io.PrintStream类: 打印流
        构造方法:
            public PrintStream(String/File path): 传递String/File 类型的文件路径
        特有方法:
            print(xxx):不带换行     原样写出
            println(xxx):带换行     原样写出

 */
public class Demo01PrintStream {
    public static void main(String[] args) throws FileNotFoundException {
        PrintStream ps = new PrintStream("day12\\ps1.txt");
        ps.println(100);
        ps.println("hello");
        ps.println(true);
        ps.println(97);
        ps.write(97);

    }
}
